

//
//  PaymentCell.m
//  LuxuryGoods
//
//  Created by DCQ on 2018/5/24.
//  Copyright © 2018年 Future. All rights reserved.
//

#import "PaymentCell.h"

@interface PaymentCell()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UIImageView *selectedImgV;

@end
@implementation PaymentCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setupPaymentData:(NSDictionary *)item{
    
    self.imgV.image = [UIImage imageNamed:item[@"img"]];
    self.titleLabel.text = item[@"title"];
    
}
- (void)setupPaymentSelectedState:(BOOL)selectedState{
    NSString * imgName = @"";
    if (selectedState) {
        imgName = @"tab_selected";
    }else {
        imgName = @"tab_normal";
        
    }
    self.selectedImgV.image = [UIImage imageNamed:imgName];
    
}
@end
